package com.trade.wzj.service.yu;
import com.trade.wzj.dao.yu.IClientInfoDao;

public class ClientInfoServiceImpl implements IClientInfoService {

	@Override
	public boolean clientInfoisDel(Integer id) throws Exception{
		boolean bol=false;
		try {
			if (dao.ClientInfoDel(id)>=0) {
				bol=true;
			}
		} catch (Exception e) {
			e.printStackTrace();
			throw new Exception();
		}
		
		return bol;
	}

	@Override
	public boolean supplierInfoisDel(Integer id) throws Exception {
		try {
			if (dao.SupplierInfo(id)!=0) {
				return true;
			}
		} catch (Exception e) {
			e.printStackTrace();
			throw new Exception();
		}
		return false;
	}
	
	
	private IClientInfoDao dao;
	public IClientInfoDao getDao() {
		return dao;
	}
	public void setDao(IClientInfoDao dao) {
		this.dao = dao;
	}
}
